<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>links</title>
</head>

<body>
<?
require_once '../inc.php';
$filename=$_REQUEST['filename'];

class Fruit {
	public static $category = "I'm fruit";
    
    static function find($class) 
	{
    	$vars = get_class_vars($class) ;
      	echo $vars['category'] ;
    }
}

class Apple extends Fruit {
     public static $category = "I'm Apple";
}


Apple::find("Apple");


?>
</body>
</html>